export const QG = 'qg'
//平台名称
export const PlatName = {
    DEV: 'dev',
    WX: 'wx',
    QQ: 'qq',
    TT: 'tt',
    KS: 'ks',
    OPPO: 'oppo',
    VIVO: 'vivo',
    SWAN: 'swan',//百度
    F399: 'h5api',
    COCOS: 'AdSDK',
    NATIVE: 'SDKNative',
}
//因为SDKNative是一直存在的，所以要放到最后一个找。
export const SDK_NAMES: string[] = [PlatName.KS, PlatName.QQ, PlatName.TT, PlatName.WX, QG, PlatName.SWAN, PlatName.F399, PlatName.COCOS]


export type RequestType = {
    url: string, //仅为示例，并非真实的接口地址
    timeout: number,
    header: any,
    success: (res: any) => void,
    fail: (err: any) => void,
    data?: any,
    method?: string,
}

